import types from '../../consts/actionTypes';

const selectPage = page => ({ type: types.pages.SELECT_PAGE, payload: page });
const removePage = page => ({ type: types.pages.REMOVE_PAGE, payload: page });
const addPage = page => ({ type: types.pages.ADD_PAGE, payload: page });
const updatePage = page => ({ type: types.pages.UPDATE_PAGE, payload: page });
const reorderPages = pages => ({ type: types.pages.REORDER_PAGE, payload: pages });

export default {
    selectPage,
    removePage,
    addPage,
    updatePage,
    reorderPages,
};
